![]() |
![]() |
![]() |
|
DX11 SET CAMERA RENDER TARGET
Sets the current render target that the specified camera should use for drawing to.
You can optionally provide what stage to set the render target for; if using DXVERSION_11_0 you can have up to 8 render targets bound to the same camera at once. See the documentation for DX11 SET NEW CAMERA RENDER TARGET for further details. Also take note that this doesn't set any depth stencil state for the camera, unlike DX11 SET NEW CAMERA RENDER TARGET which creates a corresponding D24_S8 buffer. If the camera had a previous depth / stencil buffer that one will be retained, but a newly created camera will not have any. For most normal situations you'll want a depth-stencil buffer for proper fragment sorting so you should remember to also set up a depth-stencil buffer and associate it with any newly created cameras using DX11 SET CAMERA DEPTH STENCIL BUFFER.
DX11 SET CAMERA RENDER TARGET camera, rtImage, [arrayIndex], [stage]
camera Dword rtImage Dword [Optional] arrayIndex Dword [Optional] stage Dword
This function does not return a value.
CAMERA Functions Menu |
![]() |